package com.baseDemo.web.dao.docinfo.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.baseDemo.web.dao.docinfo.DocInfoEntityDao;
import com.baseDemo.web.entity.DocInfoEntity;
import com.share.hibernate.baseDaoSupport.impl.BaseDaoHibernateSupport;
@Repository
public class DocInfoEntityDaoHibernate extends BaseDaoHibernateSupport<DocInfoEntity> implements DocInfoEntityDao{
	private static Map<String, Object> paramMap = new HashMap<String, Object>();
	@Override
	public List<DocInfoEntity> findByCatalogId(String catalogId) {
		String HQL = "from DocInfoEntity qie where qie.catalogId = :catalogId ";
		paramMap.clear();
		paramMap.put("catalogId", catalogId);
		return super.find(HQL, paramMap);
	}

}
